package com.ruoyi.transplant.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出圃管理对象 transplant
 *
 * @author ruoyi
 * @date 2021-07-12
 */
public class Transplant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long transplantIds[];

    public Long[] getTransplantIds() {
        return transplantIds;
    }

    public void setTransplantIds(Long[] transplantIds) {
        this.transplantIds = transplantIds;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    /** 出圃编号 */
    private Long transplantId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderId;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private Long customerId;

    /** 提苗人姓名 */
    @Excel(name = "提苗人姓名")
    private String takeseedlingPerson;

    /** 提苗人电话 */
    @Excel(name = "提苗人电话")
    private String takeseedlingPhone;

    /** 大棚编号 */
    @Excel(name = "大棚编号")
    private Long greenhouseId;

    /** 出圃时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出圃时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outgreenhouseTime;

    /** 单价 */
    @Excel(name = "单价")
    private Double price;

    /** 数量 */
    @Excel(name = "数量")
    private Double transplantAmount;

    /** 总价 */
    @Excel(name = "总价")
    private Double totalPrice;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    /** 片区主管审批状态 */
    @Excel(name = "片区主管审批状态", readConverterExp = "0=未审批,1=审批通过,2=不通过")
    private Long approvalStatusManager;

    /** 销售经理审批状态 */
    @Excel(name = "销售经理审批状态", readConverterExp = "0=未审批,1=审批通过,2=不通过")
    private String approvalStatusSale;

    public void setTransplantId(Long transplantId)
    {
        this.transplantId = transplantId;
    }

    public Long getTransplantId()
    {
        return transplantId;
    }
    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId()
    {
        return orderId;
    }
    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setTakeseedlingPerson(String takeseedlingPerson)
    {
        this.takeseedlingPerson = takeseedlingPerson;
    }

    public String getTakeseedlingPerson()
    {
        return takeseedlingPerson;
    }
    public void setTakeseedlingPhone(String takeseedlingPhone)
    {
        this.takeseedlingPhone = takeseedlingPhone;
    }

    public String getTakeseedlingPhone()
    {
        return takeseedlingPhone;
    }
    public void setGreenhouseId(Long greenhouseId)
    {
        this.greenhouseId = greenhouseId;
    }

    public Long getGreenhouseId()
    {
        return greenhouseId;
    }
    public void setOutgreenhouseTime(Date outgreenhouseTime)
    {
        this.outgreenhouseTime = outgreenhouseTime;
    }

    public Date getOutgreenhouseTime()
    {
        return outgreenhouseTime;
    }
    public void setPrice(double price)
    {
        this.price = price;
    }

    public Double getPrice()
    {
        return price;
    }
    public void setTransplantAmount(Double transplantAmount)
    {
        this.transplantAmount = transplantAmount;
    }

    public Double getTransplantAmount()
    {
        return transplantAmount;
    }
    public void setTotalPrice(Double totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public Double getTotalPrice()
    {
        return totalPrice;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }
    public void setApprovalStatusManager(Long approvalStatusManager)
    {
        this.approvalStatusManager = approvalStatusManager;
    }

    public Long getApprovalStatusManager()
    {
        return approvalStatusManager;
    }
    public void setApprovalStatusSale(String approvalStatusSale)
    {
        this.approvalStatusSale = approvalStatusSale;
    }

    public String getApprovalStatusSale()
    {
        return approvalStatusSale;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("transplantId", getTransplantId())
            .append("orderId", getOrderId())
            .append("customerId", getCustomerId())
            .append("takeseedlingPerson", getTakeseedlingPerson())
            .append("takeseedlingPhone", getTakeseedlingPhone())
            .append("greenhouseId", getGreenhouseId())
            .append("outgreenhouseTime", getOutgreenhouseTime())
            .append("price", getPrice())
            .append("transplantAmount", getTransplantAmount())
            .append("totalPrice", getTotalPrice())
            .append("note", getNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("approvalStatusManager", getApprovalStatusManager())
            .append("approvalStatusSale", getApprovalStatusSale())
            .toString();
    }
}
